﻿using System;
using System.Web.UI;

namespace BikeBouncer.Site
{
	public partial class Logout_aspx : Page
	{
		#region Logout

		protected void Page_Load(Object sender, EventArgs e)
		{
			CookieManager.LoggedUser = null;

			SessionManager.CurrentItem = null; 
			SessionManager.LoggedUser = null;
			SessionManager.LoginAttempts = 0;

			String r = Request.QueryString["r"];

			if (String.IsNullOrEmpty(r))
			{
				r = "Default.aspx";
			}
			
			Response.Redirect("/" + r);
		}

		#endregion
	}
}